﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace WJ.Infrastructure.CQRS
{
    public class CommandBus : ICommandBus
    {

        public void Send<TCommand>(TCommand command) where TCommand : Command
        {
            var handler = IoC.Resolve<IHandle<TCommand>>();

             handler.Execute(command);

        }


    }
}
